<?php
class sessija
{
function __construct(){
        if($_GET['action']=='logout'){
        session_unset();
        session_destroy();
        header("Location: index.php"); 
        }    
        if($_SESSION['login']!="logged"){
        include_once "template/login.html";
        exit(0);
        }
}     
}
?>